Add fixtures to call dpus on smartswtich directly #15695
+62
−4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of PR
The mgmt IP of dpus on smartswitch is private IP(169.254.200.0/24), we cannot access it directly out of the switch. To operate dpu like operating switch when impmenting the test case(dash, platform on dup), we add two fixtures: dpuhost and fixture_dpuhosts. They are same as duthost and fixture_duthosts.
Before the calling the fixtures, we need to do the steps as follows:
[SmartSwitch] Added inbound traffic capability for DPU management traffic script sonic-buildimage#20635
e.g.
e.g.
e.g.
So, we can access the dpu directly out of switch such as "ssh [email protected] -p 5021"
Run tests usage:
When runing case only on dpu(For the exsiting tests such as platform, techsupport, we can run them without any case change):
When running case on smartswitch(NPU) and dpu:
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
Add fixtures to operate dup directly out of switch like operating switch
How did you do it?
Add fixures : duthost and fixture_duthosts
How did you verify/test it?
run platform case on dpu only and dash case on smartswitch
Any platform specific information?
SmartSwtich
Supported testbed topology if it's a new test case?
Documentation